package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the EX_ENTIDAD_DIST database table.
 * 
 */
@Entity
@Table(name="EX_ENTIDAD_DIST")
public class ExEntidadDist implements Serializable {
	private static final long serialVersionUID = 1L;
	private long entRefnum;
	private String aaHojaPres;
	private String errorCodigo;
	private String estado;
	private String nuHojaPres;
	private String oficRegId;
	private String regPubId;
	private String tbpNumPartida;
	private Date tmstmpDist;
	private String tpjtCoActoRgst;
	private BigDecimal tpjtNsAfec;
	private String tpjtNsPersNatu;
	private String tpntCoActoRgst;
	private BigDecimal tpntNsAfec;
	private String tpntNsPersNatu;
	private String ttaCoActo;
	private BigDecimal ttaNsAfec;

    public ExEntidadDist() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="ENT_REFNUM", unique=true, nullable=false)
	public long getEntRefnum() {
		return this.entRefnum;
	}

	public void setEntRefnum(long entRefnum) {
		this.entRefnum = entRefnum;
	}


	@Column(name="AA_HOJA_PRES", nullable=false, length=4)
	public String getAaHojaPres() {
		return this.aaHojaPres;
	}

	public void setAaHojaPres(String aaHojaPres) {
		this.aaHojaPres = aaHojaPres;
	}


	@Column(name="ERROR_CODIGO", length=6)
	public String getErrorCodigo() {
		return this.errorCodigo;
	}

	public void setErrorCodigo(String errorCodigo) {
		this.errorCodigo = errorCodigo;
	}


	@Column(length=1)
	public String getEstado() {
		return this.estado;
	}

	public void setEstado(String estado) {
		this.estado = estado;
	}


	@Column(name="NU_HOJA_PRES", nullable=false, length=8)
	public String getNuHojaPres() {
		return this.nuHojaPres;
	}

	public void setNuHojaPres(String nuHojaPres) {
		this.nuHojaPres = nuHojaPres;
	}


	@Column(name="OFIC_REG_ID", nullable=false, length=2)
	public String getOficRegId() {
		return this.oficRegId;
	}

	public void setOficRegId(String oficRegId) {
		this.oficRegId = oficRegId;
	}


	@Column(name="REG_PUB_ID", nullable=false, length=2)
	public String getRegPubId() {
		return this.regPubId;
	}

	public void setRegPubId(String regPubId) {
		this.regPubId = regPubId;
	}


	@Column(name="TBP_NUM_PARTIDA", length=8)
	public String getTbpNumPartida() {
		return this.tbpNumPartida;
	}

	public void setTbpNumPartida(String tbpNumPartida) {
		this.tbpNumPartida = tbpNumPartida;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="TMSTMP_DIST")
	public Date getTmstmpDist() {
		return this.tmstmpDist;
	}

	public void setTmstmpDist(Date tmstmpDist) {
		this.tmstmpDist = tmstmpDist;
	}


	@Column(name="TPJT_CO_ACTO_RGST", length=5)
	public String getTpjtCoActoRgst() {
		return this.tpjtCoActoRgst;
	}

	public void setTpjtCoActoRgst(String tpjtCoActoRgst) {
		this.tpjtCoActoRgst = tpjtCoActoRgst;
	}


	@Column(name="TPJT_NS_AFEC", precision=38)
	public BigDecimal getTpjtNsAfec() {
		return this.tpjtNsAfec;
	}

	public void setTpjtNsAfec(BigDecimal tpjtNsAfec) {
		this.tpjtNsAfec = tpjtNsAfec;
	}


	@Column(name="TPJT_NS_PERS_NATU", length=5)
	public String getTpjtNsPersNatu() {
		return this.tpjtNsPersNatu;
	}

	public void setTpjtNsPersNatu(String tpjtNsPersNatu) {
		this.tpjtNsPersNatu = tpjtNsPersNatu;
	}


	@Column(name="TPNT_CO_ACTO_RGST", length=5)
	public String getTpntCoActoRgst() {
		return this.tpntCoActoRgst;
	}

	public void setTpntCoActoRgst(String tpntCoActoRgst) {
		this.tpntCoActoRgst = tpntCoActoRgst;
	}


	@Column(name="TPNT_NS_AFEC", precision=38)
	public BigDecimal getTpntNsAfec() {
		return this.tpntNsAfec;
	}

	public void setTpntNsAfec(BigDecimal tpntNsAfec) {
		this.tpntNsAfec = tpntNsAfec;
	}


	@Column(name="TPNT_NS_PERS_NATU", length=5)
	public String getTpntNsPersNatu() {
		return this.tpntNsPersNatu;
	}

	public void setTpntNsPersNatu(String tpntNsPersNatu) {
		this.tpntNsPersNatu = tpntNsPersNatu;
	}


	@Column(name="TTA_CO_ACTO", length=5)
	public String getTtaCoActo() {
		return this.ttaCoActo;
	}

	public void setTtaCoActo(String ttaCoActo) {
		this.ttaCoActo = ttaCoActo;
	}


	@Column(name="TTA_NS_AFEC", precision=5)
	public BigDecimal getTtaNsAfec() {
		return this.ttaNsAfec;
	}

	public void setTtaNsAfec(BigDecimal ttaNsAfec) {
		this.ttaNsAfec = ttaNsAfec;
	}

}